-- GENERATED SPELL FOR [Insane Ghoul] --


function spell0_511(pUnit, Event) --@Curse of Blood,n/a--
pUnit:FullCastSpellOnTarget(8282,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_511', 2000, 1)
end

function Sorts_511(pUnit, Event)
local choix_sorts_511 = math.random(0, 0)
if choix_sorts_511 == 0 then
pUnit:RegisterEvent('spell0_511', 1, 1)
end
end

function mob511_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_511', math.random(1500, 3000), 1)
end

function mob511_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob511_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob511_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(511, 1, 'mob511_Action')
RegisterUnitEvent(511, 2, 'mob511_Leave')
RegisterUnitEvent(511, 3, 'mob511_Kill')
RegisterUnitEvent(511, 4, 'mob511_Die')
